import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import nodejs from '@feidao/web/atom/browser/msg/nodejs';

export default async function a006(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	// 考场删除
	const target_node = args[0].target;
	const layout_no = target_node.getAttribute('data-feidao-id');
	const res = await nodejs(fd.data.spaceid, 'arrange_exam_room_del', { layout_no });
	if (res === 'success') {
		alert('删除成功');
		window.location.reload();
	} else {
		alert('删除失败');
	}
}
